import React , {FC} from 'react'
import { Input, Typography } from 'antd'
import inputDefault , { QuestionInputType } from './interface'

const { Paragraph } = Typography

const QuestionInput:FC<QuestionInputType> = (props : QuestionInputType) => {
    const {title , placeholder} = {...inputDefault , ...props}
    return <div>
        <Paragraph strong>{title}</Paragraph>
        <div>
            <Input placeholder={placeholder}/>
        </div>
    </div>
}

export default QuestionInput